<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="wcommons.lang.quickbean.Message"%>
<script type="text/javascript" src="${ctx }/easyext3/src/data/ComboJsonStore.js"></script>
<script type="text/javascript" src="${ctx }/easyext3/src/data/JsonStore.js"></script>
<script type="text/javascript" src="${ctx }/easyext3/src/grid/PageSizePlugin.js"></script>
<script type="text/javascript" src="${ctx }/easyext3/src/tool/EasyExt.js"></script>
<script type="text/javascript">
	// 消息类型
	var NO_MESSAGE = '<%=Message.NO_MESSAGE%>';
	var NOTE_MESSAGE = '<%=Message.NOTE_MESSAGE%>';
	var CONFIRM_MESSAGE = '<%=Message.CONFIRM_MESSAGE%>';
	var ERROR_MESSAGE = '<%=Message.ERROR_MESSAGE%>';
	//表单必填项标签前面加上红色的*符号。
	var nativeMethod = Ext.layout.FormLayout.prototype.getTemplateArgs;
	Ext.apply(Ext.layout.FormLayout.prototype, {
		getTemplateArgs: function(field) {
			var args = nativeMethod.call(this, field);
			var allowBlank = field.allowBlank;
			var fieldLabel = args.label;
			if (!Ext.isEmpty(fieldLabel) && !allowBlank) {
				args.label = '<font color="#FF0000">*</font>' + fieldLabel;
			}
			return args;
		}
	});
</script>